package com.kgcx.system.mapper;

import com.kgcx.system.domain.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * @description 角色持久层
 * @author 何凯
 * @version 0.1
 * @time 2017/12/15 9:54
 * @since 0.1
 */
public interface SysRoleMapper {
    int deleteByPrimaryKey(Integer kid);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(@Param("kid") Integer kid);

    SysRole selectRoleMenuByRoleId(@Param("kid") Integer kid);

    List<SysRole> selectRoleList(SysRole record);

    List<SysRole> selectRoleListByName(SysRole record);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);
}
